package com.hexb.smh.service;

import com.hexb.smh.entity.Commission;
import com.hexb.smh.entity.view.CommissionTable;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.io.OutputStream;

/**
 * @author : hexb
 */
public interface ICommissionService {

    int saveOrUpdate(@NotNull Commission commission);

    int update(Commission commission);

    CommissionTable<?> createEditableTable();

    CommissionTable<String> createReadOnlyTable(Integer brandId);

    int importFromExcel(MultipartFile file, Integer brandId);

    void exportExcel(OutputStream os, Integer brandId);
}
